home *** CD-ROM | disk | FTP | other *** search
- /*
-
- $VER: EASYversion 1.0 (12.11.95) by David De Groot
-
-
- Compares versions in two dirs
- (f.e. work:libs - system:libs)
-
- This script works with 'multiver' in your c: dir
-
-
- */
-
-
-
-
- options failat 21
-
- NL = '0a'x
-
- bool = exists('libs:rexxreqtools.library')
- if bool = 0 then say "You need RexxReqTools.library"
- else call addlib('rexxreqtools.library',0,-30)
-
- mcheck = exists('c:multiver')
- if mcheck = 0
- then do
- call rtezrequest("MULTIVER is not in C:.",,
- "Sorry!","ATTENTION!!",'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
- exit
- end
- else
-
-
- call rtezrequest("This scirpt allows you to compare versions" nl,
- "of two directorie's contents." nl "" nl,
- "There's an option to copy:" nl,
- "if two identicals are found, you will be asked" nl,
- "for comfirmation;" nl,
- "the NEWEST (most recent) version will overwrite the older." nl,
- "" nl "In either case a LOGFILE will be written to your ram: " nl,
- "(Ram:Log)",,
- "Ok","EASYversion", 'rt_reqpos=reqpos_centerscr rtez_flags=ezreqf_centertext')
-
- dira = rtfilerequest('ram:',,"Pick the FIRST dir to scan:", ,,
- 'rtfi_flags = freqf_nofiles rt_reqpos=reqpos_centerscr')
-
- if rtresult == 0 then exit
- else do
- dirb = rtfilerequest('ram:',,"Pick the SECOND dir to scan:", ,,
- 'rtfi_flags = freqf_nofiles rt_reqpos=reqpos_centerscr')
-
- if rtresult == 0 then exit
-
- address command
- 'multiver ' || dira || ' ' || dirb || ' copy log os3.1'
-
- end
-
- say ""
- say "Close window when done."
-
-
-
- /* Futureplans: DESTROY ;-) */
-
-
-